#21 ✓resolved
Rick DeNatale

Exception when count option used to enumerate non-recurring event.

Reported by Rick DeNatale | August 18th, 2009 @ 09:06 AM

This was reported by kjwierenga who provided the fix.

Failing test case (modified from kj's original)

in occurrence_enumerator_spec.rb

describe "for a non-recurring event" do
  before(:each) do
    @event_start = Time.now.utc
    @event = RiCal.Event do |event|
      event.dtstart = @event_start
      event.dtend   = @event_start + 3600
      # event.rrule  (no recurrence, single event)
    end
  end

  #Bug reported by K.J. Wierenga
  it "should not raise a NoMethodError when specifying just the :count option" do
    lambda {
      @event.occurrences(:count => 1)
      }.should_not raise_error
    end
  end
end

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences

Shared Ticket Bins

People watching this ticket

Pages